#/usr/bin/env python
# -*- coding: utf8 -*-
# title       :
# description :
# author      :'ShenMeng'

import pymel.core as pmel
import maya.cmds as cmds

class Validation(object):
    name = u'Past | 粘贴检查'
    dataDict = dict()

    def execute(self):
        self.dataDict = {}
        pastedList = pmel.ls(regex='*pasted__.*')
        if pastedList:
            self.dataDict['*pasted__*'] = [obj.longName() for obj in pastedList ]
        return self.dataDict

    def search(self, obj):
        cmds.select(self.dataDict[obj])

